<?php if(!defined("HDPHP_PATH"))exit;C("SHOW_NOTICE",FALSE);?><!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>选择添加商品是的栏目</title>
	<script type='text/javascript' src='http://localhost/oshop/hdphp/hdphp/Extend/Org/Jquery/jquery-1.8.2.min.js'></script>
<link href='http://localhost/oshop/hdphp/hdphp/../hdjs/css/hdjs.css' rel='stylesheet' media='screen'>
<script src='http://localhost/oshop/hdphp/hdphp/../hdjs/js/hdjs.js'></script>
<script src='http://localhost/oshop/hdphp/hdphp/../hdjs/js/slide.js'></script>
<script src='http://localhost/oshop/hdphp/hdphp/../hdjs/org/cal/lhgcalendar.min.js'></script>
<script type='text/javascript'>
		HOST = 'http://localhost';
		ROOT = 'http://localhost/oshop';
		WEB = 'http://localhost/oshop/admin.php';
		URL = 'http://localhost/oshop/admin.php/Index/Goods/category';
		HDPHP = 'http://localhost/oshop/hdphp/hdphp';
		HDPHPDATA = 'http://localhost/oshop/hdphp/hdphp/Data';
		HDPHPTPL = 'http://localhost/oshop/hdphp/hdphp/Lib/Tpl';
		HDPHPEXTEND = 'http://localhost/oshop/hdphp/hdphp/Extend';
		APP = 'http://localhost/oshop/admin.php/Index';
		CONTROL = 'http://localhost/oshop/admin.php/Index/Goods';
		METH = 'http://localhost/oshop/admin.php/Index/Goods/category';
		GROUP = 'http://localhost/oshop/Oshop';
		TPL = 'http://localhost/oshop/Oshop/Admin/Index/Tpl';
		CONTROLTPL = 'http://localhost/oshop/Oshop/Admin/Index/Tpl/Goods';
		STATIC = 'http://localhost/oshop/Static';
		PUBLIC = 'http://localhost/oshop/Oshop/Admin/Index/Tpl/Public';
		HISTORY = 'http://localhost/oshop/admin.php/Index/Goods/index';
		HTTPREFERER = 'http://localhost/oshop/admin.php/Index/Goods/index';
</script>
</head>
<body>
	<div class="wrap">
		<div class="menu_list">
			<ul>
				<li>
					<a href="<?php echo U(index);?>" >商品列表</a>
				</li>
				<li>
					<a href="javascript:;" class="action">添加商品</a>
				</li>
			</ul>
		</div>
		<div class="title-header" style="color:green">选择栏目类型</div>
		<form action="<?php echo U(add);?>" method="post">
			<select name="gtid_cid" id=""   class="w400" size="20">
			<?php $hd["list"]["cate"]["total"]=0;if(isset($category) && !empty($category)):$_id_cate=0;$_index_cate=0;$lastcate=min(1000,count($category));
$hd["list"]["cate"]["first"]=true;
$hd["list"]["cate"]["last"]=false;
$_total_cate=ceil($lastcate/1);$hd["list"]["cate"]["total"]=$_total_cate;
$_data_cate = array_slice($category,0,$lastcate);
if(count($_data_cate)==0):echo "";
else:
foreach($_data_cate as $key=>$cate):
if(($_id_cate)%1==0):$_id_cate++;else:$_id_cate++;continue;endif;
$hd["list"]["cate"]["index"]=++$_index_cate;
if($_index_cate>=$_total_cate):$hd["list"]["cate"]["last"]=true;endif;?>

				<option value="<?php echo $cate['gtid'];?>|<?php echo $cate['cid'];?>"><?php echo $cate['cname'];?></option>
			<?php $hd["list"]["cate"]["first"]=false;
endforeach;
endif;
else:
echo "";
endif;?>
		          </select>
		          <div class="position-bottom">
		          	<input type="submit" value="确定" class="hd-success">
		          </div>
		</form>
	</div>
</body>
</html>




